package HOT100;

import java.util.Scanner;

/**
 * @author 是阿秋啊
 * @date 2022/11/25 16:06
 **/
public class sifangda2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int k = sc.nextInt();
        int start = sc.nextInt();
        String[] people = new String[m];
        for (int i = 0; i < people.length; i++) {
            people[i] = sc.next();
        }
        if (start > m) {
            System.out.println("no person...");
            return;
        }
        for (int i = start-1; i < people.length; i+=k+1) {
            System.out.println(people[i]);
        }
    }
}